package org.firstSpringDema;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;
import org.springframework.web.bind.annotation.GetMapping;
import orgc.CommonConfig;

@SpringBootApplication

@Import(CommonConfig.class)
public class Main {

    public static void main(String[] args) {

        ApplicationContext applicationContext = SpringApplication.run(Main.class, args);
        SendEmail sendEmail = applicationContext.getBean(SendEmail.class);
        System.out.println("~~~~Code" + sendEmail.getCode());
        System.out.println("~~~~name" + sendEmail.getName());
        System.out.println("Mian started");
    }

//    @GetMapping("/")

}
